package com.bjsxt.livegoods.hotproduct.service.controller;

import com.bjsxt.livegoods.hotproduct.service.service.HotProductService;
import com.bjsxt.livegoods.hotproduct.serviceapi.HotProductServiceAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 热销商品服务提供者--控制器
 */
@RestController
public class HotProductServiceController implements HotProductServiceAPI {
    @Autowired(required = false)
    private HotProductService hotProductService;

    @Override
    public Map<String,Object> findHotProducts(String city) {
        return this.hotProductService.findHotProducts(city);
    }
}
